<#-- @ftlvariable name="page" type="org.springframework.data.domain.Page<com.fable.sp.core.domain.Layout>" -->
<div class="container-fluid">
    <div class="row">
    <#list page.content as layout>
        <div class="col-xs-4">
            <div class="panel" style="margin: 5px 0px">
                <div class="panel-body">
                    <h4>${layout.name}</h4>
                    <p>${layout.info}</p>
                    <p>
                        <a role="button" class="btn btn-primary" href="<@spring.url relativeUrl='/sp/layoutControl'/>?layoutId=${layout.id}" target="_blank">编辑</a>
                        <button role="button" class="btn btn-default copy-layout" data-id="${layout.id}">复制</button>
                        <a role="button" class="btn btn-default disable-layout" href="/sp/">模拟填报</a>
                        <button role="button" class="btn btn-default disable-layout" href="#">停用</button>
                    </p>
                </div>
            </div>
        </div>
    <#else >
        <div class="col-xs-12 text-center">暂未设置布局控制</div>
    </#list>
    </div>
<@ui.pagination value=page/>
</div>